package com.aaa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;



/**
 * @author CHENQING
 * Emp :实例类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp {
    private Integer id;

    private String name;

    private Integer age;

    private String job;

    private Integer salary;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date entrydate;

    private Integer managerid;

    private Integer deptId;

    private String headimg;
    private Dept dept;

}